package com.yanqu.road.logic.bussiness.player;

import com.yanqu.road.entity.player.UserHouseBar;
import com.yanqu.road.entity.player.UserHouseBarDispatch;
import com.yanqu.road.logic.bussiness.DaoHelper;
import com.yanqu.road.entity.player.UserHouse;

import java.util.Map;


public class UserHouseBussiness {

    public static UserHouse getUserHouse(long userId) {
        return DaoHelper.getUserHouseDaoImpl().getUserHouse(userId);
    }

    public static boolean addUserHouse(UserHouse userHouse) {
        return DaoHelper.getUserHouseDaoImpl().add(userHouse);
    }

    public static boolean updateUserHouse(UserHouse userHouse) {
        return DaoHelper.getUserHouseDaoImpl().update(userHouse);
    }

    public static Map<Integer, UserHouseBar> getUserHouseBarMap(long userId) {
        return DaoHelper.getUserHouseBarDaoImpl().getUserHouseBarMap(userId);
    }

    public static boolean addUserHouseBar(UserHouseBar userHouseBar) {
        return DaoHelper.getUserHouseBarDaoImpl().add(userHouseBar);
    }


    public static boolean updateUserHouseBar(UserHouseBar userHouseBar) {
        return DaoHelper.getUserHouseBarDaoImpl().update(userHouseBar);
    }

    public static UserHouseBarDispatch getUserHouseBarDispatch(long userId) {
        return DaoHelper.getUserHouseBarDispatchDaoImpl().getUserHouseBarDispatch(userId);
    }

    public static boolean addUserHouseBarDispatch(UserHouseBarDispatch userHouseBarDispatch) {
        return DaoHelper.getUserHouseBarDispatchDaoImpl().add(userHouseBarDispatch);
    }


    public static boolean updateUserHouseBarDispatch(UserHouseBarDispatch userHouseBarDispatch) {
        return DaoHelper.getUserHouseBarDispatchDaoImpl().update(userHouseBarDispatch);
    }

}
